package com.xyzh.stj.web.service;

import com.xyzh.stj.web.dto.right.QueryRightDTO;
import com.xyzh.stj.web.entity.OrganizationEntity;
import com.xyzh.stj.web.entity.RightEntity;
import com.xyzh.stj.web.entity.RoleEntity;
import com.xyzh.stj.web.vo.right.MenuRight;
import com.xyzh.application.base.service.BasicService;

import java.util.List;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author @JZB
 * @since 2023-10-29
 */
public interface RightService extends BasicService<RightEntity> {

    List<RightEntity> getRightsByRoles(List<RoleEntity> roles);

    List<MenuRight> getRightsByRoleId(String roleid);

    List<RightEntity> getRightsByOrganizations(List<OrganizationEntity> organizationEntities);

    List<MenuRight> getRightsByOrganizationId(String orgid);

    List<MenuRight> getRightsByUser(List<RoleEntity> roles, List<OrganizationEntity> organizationEntities);

    List<MenuRight> getRightListByUser(QueryRightDTO queryRightDTO);

    List<MenuRight> getAllRight(RightEntity rightEntity);
}
